added get or create function for database config file. only supports ubuntu for now.