Fixing array sizes
Using database stuff that was made