created Python script for generating db