Added "prepare" function in DatabaseConnection