Grant access to correct database.