Problem in database selection