Added proper database script and relation image