[keyserver] Introduce getDBType function to distinguish MySQL and MariaDB
Summary: Depends on D4516
Test Plan: Tested in combination with next diffs
Reviewers: jonringer-comm, atul, palys-swm
Reviewed By: atul
Subscribers: Adrian, yayabosh
Differential Revision: https://phab.comm.dev/D4518